using System.Collections.Generic;
using System.Text;
using System;
using NHibernate.Collection;
using NHibernate.Mapping;
using Iesi.Collections;
namespace JVLMRP 
{
    public class MRPProducts 
    {
        private string productcode;
        private string productname;
        private int producttypeid;
        private string unitcode;
        private float curentinstock;
        private float planinstock;

        ISet mrpdetailsimportList;
        ISet mrpdetailsordersList;
        ISet mrpdetailsrequirementList;

        public MRPProducts()
        {

        }

        public  string Productcode
        {
            get { return productcode; }
            set { productcode= value; }
        }

        public  string Productname
        {
            get { return productname; }
            set { productname= value; }
        }

        public  int Producttypeid
        {
            get { return producttypeid; }
            set { producttypeid= value; }
        }

        public  string Unitcode
        {
            get { return unitcode; }
            set { unitcode= value; }
        }
        public float Curentinstock
        {
            get { return curentinstock; }
            set { curentinstock = value; }
        }
        public float Planinstock
        {
            get { return planinstock; }
            set { planinstock = value; }
        }

        public  ISet MrpdetailsimportList
        {
            get { return mrpdetailsimportList; }
            set { mrpdetailsimportList= value; }
        }

        public  ISet MrpdetailsordersList
        {
            get { return mrpdetailsordersList; }
            set { mrpdetailsordersList= value; }
        }

        public  ISet MrpdetailsrequirementList
        {
            get { return mrpdetailsrequirementList; }
            set { mrpdetailsrequirementList= value; }
        }

        public override string ToString()
        {
            String s = "";
            if(productcode!=null)
	            s+= "productcode : "+ productcode.ToString()+"\n";
            else
	            s+= "productcode : null\n";
            if(productname!=null)
	            s+= "productname : "+ productname.ToString()+"\n";
            else
	            s+= "productname : null\n";
            if(producttypeid!=null)
	            s+= "producttypeid : "+ producttypeid.ToString()+"\n";
            else
	            s+= "producttypeid : null\n";
            if(unitcode!=null)
	            s+= "unitcode : "+ unitcode.ToString()+"\n";
            else
	            s+= "unitcode : null\n";
            return s;
        }


    }
}
